09-09-2013 07:04 AM
I can run my app in debug mode and set breakpoints to run in step by step mode. However when the app crash I can't figure out how to get the precise line crash. The only way I found is to put a breakpoint in the beginning of the function and go on step by step until the app crash.
Is there a way to make the IDE highlighting the crash line automatically ?
09-09-2013 07:49 AM
09-09-2013 08:00 AM
where do you find the stacktrace after it occurs?
Also slightly off topic, if console.log outputs an error like "failed to connected to target node with id ###" is there any way to trace down the node it wasn't able to target and get it's name instead of a seemingly unknown number?
09-27-2013 09:04 AM - edited 09-27-2013 09:06 AM
This is how I solved the problem:
When your app crashes a core dump will be written into the application sandbox (in the log directory).
Use the Target File System Navigator view in Momentics to copy the appname.core file out of the device/simulator onto your desktop.
Then create yourself a new Debug Configuration (Run -> Debug Configurations). Make sure you create it under the "BlackBerry Porstmortem Debugging" category.
For this new debug config, make sure the build configuration matches the build that you are testing (ie simulator-debug vs device-debug)
Leave the 'Core file' field blank and hit 'Debug'. Momentics will prompt you for the core file that you copied onto your desktop. Let momentics switch to the debug perspective, and there you'll have the complete callstack, variables, registers at the moment your program crashed