how to debug in inno setup and view variables

529 views
Skip to first unread message

simm...@gmail.com

unread,
Aug 10, 2020, 6:43:23 PM8/10/20
to innosetup
I got an error in my script "16:315". 

1. Where can I find this line?
2. How to debug in inno setup and view variables ?

Thanks

Gavin Lambert

unread,
Aug 10, 2020, 7:26:24 PM8/10/20
to inno...@googlegroups.com
The number is some kind of reference to the internal bytecode. It is
completely useless.


You can set breakpoints on any line using the standard Inno editor.
When stopped at a breakpoint you can hover over most variables to see
their values, as you'd expect.

Adding Log() lines can also be helpful, as these are printed in the
output window as it runs.

bste...@iname.com

unread,
Aug 11, 2020, 11:54:11 AM8/11/20
to innosetup
On Monday, August 10, 2020 at 4:43:23 PM UTC-6 simm...@gmail.com wrote:

How to debug in inno setup and view variables ?

Interestingly, the IS documentation doesn't talk about how to use the PascalScript debugger. It's pretty easy to use:

* Run -> Toggle Breakpoint (F5) toggles a breakpoint (i.e., execution pauses on this line of code)

* Run -> Step Into (F7) steps to the next line of code; if a function, the cursor will jump inside the function

* Run -> Step Over (F8) steps to the next line of code without stepping inside functions

* Run -> Target Setup (Ctrl+Q) lets you debug the code that runs when you install

* Run -> Target Uninstall (Ctrl+Q) lets you debug the code that runs when you uninstall

As noted previously, float/hover the mouse over a variable to see its current value.

HTH

Bill

simm...@gmail.com

unread,
Aug 12, 2020, 1:25:15 AM8/12/20
to innosetup
Thank you

simm...@gmail.com

unread,
Aug 12, 2020, 1:25:24 AM8/12/20
to innosetup
Thank you
Reply all
Reply to author
Forward
0 new messages