Thread(safe) debugging problem

Working on new editor enhancements?
User avatar
tarmsaft
User
User
Posts: 37
Joined: Sat Jun 30, 2007 12:03 pm
Location: San Francisco

Thread(safe) debugging problem

Post by tarmsaft »

I'm not sure if this belongs here or on the OS X pages. As I am one of many who have recently bought a MAC, that is without never have reflecting upon such a decision a few years ago, I have started to re-build my projects on the MAC.

When I call the CallDebugger or set a breakpoint inside a thread I am not able to step my code, once I have chosen continue or any of the step functions (step, step <n>n, etc) the debugger seemingly halts. I am only able to do one single step.

Example, if I put a breakpoint on Debug "Thread: Line 1" , I will see the debug output Thread: Line 1 if I step or chose continue. However I will not see Thread: Line 2. It is not possible to chose another step (grayed out in the debugger). If I put the breakpoint on Debug "Thread: Line 2" I will see both outputs after a step or continue, but I will not see anything beyond that.

Code: Select all

Debug "Thread: Line 1" 
Debug "Thread: Line 2"
Is this an known IDE/debugger issue?

Do I have to do anything else than the stated information at IDE debugger manual (the very bottom of the text) here
http://purebasic.com/documentation/refe ... ugger.html
MacBook Pro (model 7,1) - 2.4GHz Intel Core 2 Duo 4GB - OS X 10.7 Lion.
PB 4.60 RC1
Marlin
Enthusiast
Enthusiast
Posts: 406
Joined: Sun Sep 17, 2006 1:24 pm
Location: Germany

Re: Thread(safe) debugging problem

Post by Marlin »

I recall having problems debugging threads as well (with Linux).

I however did not take the time to investigate it any further,
as my attention was more on solving my problems at that time.

I was not shure, if debugging threads was supposed to work the same
as debugging a program without extra threads.

It could be a bug, or it could be that this feature is not really ready for use.
Maybe you could check if there is allready a bug report covering this issue.
If there is not, you could post one, with all details you found.

It certainly would be quite helpful if debugging threads would work
as good as debugging without threads.
User avatar
tarmsaft
User
User
Posts: 37
Joined: Sat Jun 30, 2007 12:03 pm
Location: San Francisco

Re: Thread(safe) debugging problem

Post by tarmsaft »

I have not found any related posts in the bug section, better move it there then. Is that even possible without being admin? Can't find any knob or switch for that.
MacBook Pro (model 7,1) - 2.4GHz Intel Core 2 Duo 4GB - OS X 10.7 Lion.
PB 4.60 RC1
Post Reply