|
Re: Multi Threading debug [message #559927 is a reply to message #559896] |
Mon, 20 September 2010 12:37 |
|
We would need more details about what you want to do and what are the problems you're having.
Debugging multithreaded applications is done in the same way as single threaded ones:
- add the breakpoints in the code
- wait for the thread to get there
- Eclipse will suspend the running thread (only the one that passed through the breakpoint)
If you want to suspend all threads when passing through a breakpoint, just right-click it and select "Breakpoint Properties..."
Inside it you will find to radio buttons:
- Suspend Thread
- Suspend VM
The first one is selected by default. Selecting the second one will suspend all running threads in the JVM been used.
I hope that helps.
Best regards.
|
|
|
|
Re: Multi Threading debug [message #560183 is a reply to message #560062] |
Tue, 21 September 2010 13:16 |
|
Suspended means that the thread reached the breakpoint you set and now will be waiting for you to continue execution.
Debugging, from what I understand, means that in some point of your code, you want to know exactly what happened. How was the stack and the variables in your code.
To debug, you need to start you application by clicking the Debug button, and not the Run button.
Please provide more information about what you're doing and the results you're getting. Otherwise, we won't be able to help you any further.
|
|
|
Powered by
FUDForum. Page generated in 0.03043 seconds