debugging with MPLAB

Importing generated within MPLAB IDE & related tricks.
Posts: 16
Joined: Mon Nov 29, 2010 7:31 pm

debugging with MPLAB

Postby coolj » Wed Jan 12, 2011 12:41 am

In order to debug code generated by RTW and Lubin's blockset in MPLAB v8.60 (where you can follow the execution of a program, set breakpoints, etc), I have found you need to do one of the following:

1) Manually create your own project, and manually add the .c and .h files to your project; compile and debug in MPLAB.


2) If double clicking on the project file (.mcp) created by Lubin's blockset, and you want to see program execution / set breakpoints, you need to turn on "Generate debugging information" in MPLAB under Build Options -> Project -> MPLAB C30. Otherwise, even if you compile a debug build, it will not show program execution or allow breakpoints.

Hope that saves someone some time!

generate_debugging_information.gif (22.81 KiB) Viewed 1084 times

Return to “MPLAB IDE tricks”

Who is online

Users browsing this forum: No registered users and 1 guest