Installer workflow:
installer asks you for an installation directory (using directory chooser).
if directory exists, display optionDialog with options: continue, retry
(retry display directory selection screen again)
This works well in UI. OptionDialog has a Cancel button that you can press then you can press Cancel again to exit installation.
In console mode, I don't seem to be able to cancel gracefully from the optionDialog. I added a third option Quit to the dialog (throwing UserCanceledException) but it doesn't quit installation.
Any thoughts on how I can get an option for the user to Quit installation at this point?
To cancel and to perform a rollback, you can use the "Failure strategy" property of actions. If you call Util.showOptionDialog in a "Run script" action, return false from the script if the user chooses to cancel and set the "Failure strategy" property of the action to "Quit on failure".
Related
how can i trigger with PowerShell " check for updates and check online for updates from Microsoft Updates" button so it changes also "last checked date" when i run the PowerShell command ?
we use WUFB to patch our devices and some of them are not installing updates unless i press on that button .
i tried to run wuauclt.exe /detectnow /updatenow but it is not doing the job .
i also tried Invoke-WUInstall with no success .
i have found some near answers but I still can't do what I want.
Every time I stop the Python debugger and exit the terminal, I receive a popup notification in the lower-right of VSCode:
Because I stop the debugger and exit the terminal dozens of times per day, this is a nuisance. I could just ignore it (there is only ever one opened - and it doesn't stop anything from working), but then it's always there sitting on top of code I want to see.
IS THERE some setting (perhaps in settings.json) that would disable this message?
Failing that, is there some way to auto-close it on a 1-sec timer?
Add this to your settings.json: "terminal.integrated.showExitAlert": false
Option to disable alert The terminal process terminated with exit code
In gdb I can type watch &variable, then continue and gdb will break whenever something writes to that address.
I am using vscode to debug and want to do the same thing (This is different from the watch window, which will only show variable values after a breakpoint has been hit). Is it possible?
I can manually add a breakpoint by clicking the '+' and enter &variable but it never becomes active and says the module has yet to be loaded. I've tried manually entering -exec watch &variable in the debugger console window, but after continuing execution with the play button it hangs (vscode thinks the program is running again but it's not).
There are some github issues for this but they're closed without reason:
https://github.com/microsoft/vscode/issues/55931
https://github.com/microsoft/vscode/issues/47117
https://github.com/microsoft/vscode-debugadapter-node/issues/38
I had luck watching on an address. For example, if my target variable was at address 0xb79b90, I would execute -exec watch *0xb79b90 in the gdb terminal. Then I'd double check it was added as a hardware watchpoint with -exec info watch.
After continuing execution, the debugger would halt with an exception once the watchpoint is hit. vscode would display the line after the value was changed. I could then continue from there if necessary.
When Executable writes to console (using the -console option), if I press "enter" a second time, it bring me back to the command prompt even though Executable is still running in the background. How we can force it to output everything to the console and only when done should it return to command prompt?
The installer on windows is a GUI executable, it cannot make the console wait for the process to finish. There are two ways around this:
1) Select the "Windows console executable" property of the installer on the Installer->Screens & Actions step. Drawback: When starting the installer from the explorer, a console will be opened.
2) Start the installer on the command line like this:
cmd /c installer.exe -c
I need to load CE symbols after every target reset in trace32 debugger. I need to every time click this button (load CE symbols)
And i need to select nt A8_0(jumpered) as shown in fig :
How can i do this using cmm command ? I also want to do this every 10 mins time interval like wait or sleep events?
I am almost sure that both the toolbar button and the dialog are not part of a regular TRACE32 installation. Did you know that TRACE32 users can add their own buttons and dialogs? (See commands MENU and DIALOG) The text "Which ASIC?" sounds really like a dialog spedific to your company/department.
So if you have colleagues, which provide scripts for your debug sessions, I suggest to ask them.
Otherwise you might want to try the following:
Check your CMM scripts and also script C:\T32\t32.cmm for the execution of any MENU and DIALOG commands.
Check your scripts for the executions of other scripts (DO command).
Check if one of the script call a *.men or *.dlg file (Menu or dialog description file), since menu or dialog definitions can be embedded into a CMM script or placed in separate files.
The command(s) you are searching should be somewhere in such a menu or dialog definition.
Search in your setup files for the string "nt A8_0(jumpered)".
Otherwise it might help if you provide the CMM scripts you use to start your debug session.
For executing any a CMM script after fixed time interval you can try the command GLOBALON TIME 600.s DO <myscript.cmm>
This will execute the script after 10 minutes.
So if you want to execute the script periodically you have to place this GLOBALON TIME command again in the end of your script.
However if you intention is to refresh the debug symbols after calling your makefile I suggest not to use GLOBALON TIME. Instead I suggest the following to steps:
Write a CMM script 'myscript.cmm' to reload your debug symbols (same as before)
Enable the remote API port of your TRACE32 application (RCL=NETASSIST in C:\T32\config.t32)
Trigger your CMM script to reload your debug symbols from your makefile after the build with the t32rem.exe console application. Lìke this:
C:\T32\bin\windows\t32rem.exe localhost port=20000 "DO myscript.cmm"