debugging with MPLAB

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

debugging with MPLAB

Post by 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.

--or--

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!

Justin
generate_debugging_information.gif
generate_debugging_information.gif (22.81 KiB) Viewed 6542 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest