Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-04

Debugging Lazarus in Lazarus - debugger error

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lubos Pintes

Hi,
Just tried the following:
Opened <lazarus>\ide\lazarus.lpi and then pressed F7. The Assembler window appeared and after next F7 press, the following error appeared (copy of window text follows)

Debugger Error
The debugger encountered an error when trying to run/step the application: Cannot find bounds of current function
Press "Ok" to continue debugging (paused), and correct the problem, or choose an alternative run command.
Press "Stop" to end the debug session.

Pressing OK doesn't help.
I am using the latest SVN, fresh build. OS is win 7 pro 64 bit.

Reply by email

Martin
to Lubos Pintes
Lubos Pintes wrote 16 lines
Hi, Just tried the following: Opened <lazarus>\ide\lazarus.lpi and then pressed F7. The Assembler window appeared and after next F7 press, the following error appeared (copy of window text follows) Debugger Error The debugger encountered an error when trying to run/step the application: Cannot find bounds of current function Press "Ok" to continue debugging (paused), and correct the problem, or choose an alternative run command. Press "Stop" to end the debug session. Pressing OK doesn't help. I am using the latest SVN, fresh build. OS is win 7 pro 64 bit.

This is probably the same issue as described here: http://bugs.freepascal.org/view.php?id=24208

There is a workaround described in the notes.

However unless you want to debug the startup code (begin end block of the "program"), it makes no sense to use F7.

Reply by email

Lubos Pintes
to Martin

I did it "just for fun". Mainly I wanted to see how debugging goes with screen reader, if this will be similar to my Delphi experience. Currently I only met the Assembler window. Is this normal, or something is set up differently? I expected that cursor will be moved in various files like in Delphi 6.
Currently I was unable to debug even very simple project. Only assembler window appeared and then program ran normally.

D?a 3. 4. 2013 12:55 Martin wrote / nap?sal(a):

Show quoted text 34 lines
On 03/04/2013 08:28, Lubos Pintes wrote: > Hi, > Just tried the following: > Opened <lazarus>\ide\lazarus.lpi and then pressed F7. > The Assembler window appeared and after next F7 press, the following > error appeared (copy of window text follows) > > Debugger Error > The debugger encountered an error when trying to run/step the > application: > Cannot find bounds of current function > Press "Ok" to continue debugging (paused), and correct the problem, > or choose an alternative run command. > Press "Stop" to end the debug session. > > Pressing OK doesn't help. > I am using the latest SVN, fresh build. OS is win 7 pro 64 bit. This is probably the same issue as described here: http://bugs.freepascal.org/view.php?id=24208 There is a workaround described in the notes. However unless you want to debug the startup code (begin end block of the "program"), it makes no sense to use F7. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Martin
to Lubos Pintes

Have you tried to set breakpoints and start the debugger with F9? That should work.

F7 and F8 will work once you reached a breakpoint.

Using F7 and &8 before to start the debugger (when the app is not yet running) is currently not working correctly (unless you use the workaround from the link).

Also to be sure, you enabled to compile with debug info? http://wiki.lazarus.freepascal.org/Debugger_Setup#Project_Options

Lubos Pintes wrote 50 lines
I did it "just for fun". Mainly I wanted to see how debugging goes with screen reader, if this will be similar to my Delphi experience. Currently I only met the Assembler window. Is this normal, or something is set up differently? I expected that cursor will be moved in various files like in Delphi 6. Currently I was unable to debug even very simple project. Only assembler window appeared and then program ran normally. D?a 3. 4. 2013 12:55 Martin wrote / nap?sal(a): > On 03/04/2013 08:28, Lubos Pintes wrote: >> Hi, >> Just tried the following: >> Opened <lazarus>\ide\lazarus.lpi and then pressed F7. >> The Assembler window appeared and after next F7 press, the following >> error appeared (copy of window text follows) >> >> Debugger Error >> The debugger encountered an error when trying to run/step the >> application: >> Cannot find bounds of current function >> Press "Ok" to continue debugging (paused), and correct the problem, >> or choose an alternative run command. >> Press "Stop" to end the debug session. >> >> Pressing OK doesn't help. >> I am using the latest SVN, fresh build. OS is win 7 pro 64 bit. > > This is probably the same issue as described here: > http://bugs.freepascal.org/view.php?id=24208 > > There is a workaround described in the notes. > > However unless you want to debug the startup code (begin end block of > the "program"), it makes no sense to use F7. > > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Lubos Pintes
to Martin

Setting breakpoint works as expected, thank.
D?a 3. 4. 2013 15:39 Martin wrote / nap?sal(a):

Show quoted text 71 lines
Have you tried to set breakpoints and start the debugger with F9? That should work. F7 and F8 will work once you reached a breakpoint. Using F7 and &8 before to start the debugger (when the app is not yet running) is currently not working correctly (unless you use the workaround from the link). Also to be sure, you enabled to compile with debug info? http://wiki.lazarus.freepascal.org/Debugger_Setup#Project_Options On 03/04/2013 14:34, Lubos Pintes wrote: > I did it "just for fun". Mainly I wanted to see how debugging goes > with screen reader, if this will be similar to my Delphi experience. > Currently I only met the Assembler window. Is this normal, or > something is set up differently? I expected that cursor will be moved > in various files like in Delphi 6. > Currently I was unable to debug even very simple project. Only > assembler window appeared and then program ran normally. > > D?a 3. 4. 2013 12:55 Martin wrote / nap?sal(a): >> On 03/04/2013 08:28, Lubos Pintes wrote: >>> Hi, >>> Just tried the following: >>> Opened <lazarus>\ide\lazarus.lpi and then pressed F7. >>> The Assembler window appeared and after next F7 press, the >>> following error appeared (copy of window text follows) >>> >>> Debugger Error >>> The debugger encountered an error when trying to run/step the >>> application: >>> Cannot find bounds of current function >>> Press "Ok" to continue debugging (paused), and correct the problem, >>> or choose an alternative run command. >>> Press "Stop" to end the debug session. >>> >>> Pressing OK doesn't help. >>> I am using the latest SVN, fresh build. OS is win 7 pro 64 bit. >> >> This is probably the same issue as described here: >> http://bugs.freepascal.org/view.php?id=24208 >> >> There is a workaround described in the notes. >> >> However unless you want to debug the startup code (begin end block >> of the "program"), it makes no sense to use F7. >> >> >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email