Page 1 of 1

Debug - Strange behavior

Posted: Tue Jun 20, 2006 10:53 am
by marlonguerios
I was trying to debug my installer project when the debugger started to jump to wrong lines (I was using the F8 key). The lines the debugger was over doesn't match with what is actually happening.
It seems that the "source code" is not synchronized with the "running code".

Does someone know about such a behavior described above?

Thanks in advance...

Marlon

Posted: Tue Jun 20, 2006 1:40 pm
by CandiceJones
Commented lines will be skipped in the debugger, one by one.
Also, lines that have been excluded using Compiler Variables will also be skipped, one by one.
By skipped, I mean the debugger will highlight each line, but not actually do anything.

Posted: Wed Jun 21, 2006 2:35 am
by marlonguerios
Thanks for you answer.

But, it's not the behavior I could see here. I'll give you an example:

If I have four lines:

1. Set Variable Something
2. MessageBox: Title, Message
3. Microsoft Sql Server Script: ...
4. Set Variable Another thing

When line 3 is highlight it executes the statement that is in the line 1, when line 4 is highlight, it executes the statement in line 2 and so on. It's an example.

In my case, debugger is over a comment and it shows a MessageBox that was actually 3 lines before.

I've already tried to clean the output folder and rebuild again several times.

Anyway, thanks.

Marlon

Posted: Wed Jun 21, 2006 6:38 pm
by CandiceJones
That's pretty strange! Maybe you can send me your setup script and project file - I will pass it on to development so they can see if you have caught anything here in your net.