ARM Technical Support Knowledge Articles

SOURCE LEVEL DEBUGGING OF LIBRARY CODE

Applies to: General Topics

Answer


Information in this article applies to:


QUESTION

I have created a library and I want to be able to do source-level debugging in the library code. Is this possible with the Keil µVision Debugger?

ANSWER

Yes. This is possible, however, the library source code must be available.

When building the library, you must enable Debug information under Project — Options — Output. When debugging a program that is linked with the library, you may open the library source files and set breakpoints or perform other debug operations.

It is also possible to tell the uVision Debugger the path to the source files using the SET SRC directive. To add the folder C:\PRJ\CFILES\ to the search path, enter the following in the uVision Debugger command window:

SET SRC = C:\PRJ\CFILES

MORE INFORMATION

SEE ALSO

Article last edited on: 2010-09-14 10:21:47

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential