Difference between revisions of "Build and Debug Tips"

From Adobe Open Source Wiki
Jump to: navigation, search
m
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
== MSVC ==
 +
 
* Debugging msvc-built command-line ASL test apps from the command line:
 
* Debugging msvc-built command-line ASL test apps from the command line:
 
# ''To keep bjam from destroying test executables'' build with bjam --preserve-test-targets
 
# ''To keep bjam from destroying test executables'' build with bjam --preserve-test-targets
 
# ''For adam_smoke under cygwin:'' "C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe" /DebugExe bin/adobe/test/adam_smoke/adam_smoke_test.test/msvc-8.0/debug/asl-dev/link-static/threading-multi/adam_smoke_test.exe ./adobe/test/adam_smoke/rtd  
 
# ''For adam_smoke under cygwin:'' "C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe" /DebugExe bin/adobe/test/adam_smoke/adam_smoke_test.test/msvc-8.0/debug/asl-dev/link-static/threading-multi/adam_smoke_test.exe ./adobe/test/adam_smoke/rtd  
 
# F10 (to stop on first line of main), or F5 to let it rip
 
# F10 (to stop on first line of main), or F5 to let it rip
 +
 +
* Towards natural display of any_regular and poly<> in msvc and xcode debuggers.
 +
** C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\autoexp.dat can be extended, but not sure how useful it is. Perhaps http://msdn2.microsoft.com/en-us/library/8fwk67y3(vs.71).aspx would be more useful for some common types.
 +
**Xcode has  Debug > Variables View > Edit Summary Format and ~/Library/Application Support/Apple/Developer Tools/CustomDataViews/CustomDataViews.plist , but I haven't explored it much either.
 +
 +
== XCode ==
 +
 +
* XCode uses [http://developer.apple.com/DOCUMENTATION/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/06_04_db_view_info/chapter_42_section_4.html Custom Data Formatters] to display information about a variable during the debug process. These summary expressions can be entered in at the time you are debugging a variable. For example, to get the type of a value held by an adobe::any_regular_t, put this into the summary expression:
 +
 +
type={$VAR.type_info().identity_m.name_m}:s

Latest revision as of 16:17, 28 June 2007

MSVC

  • Debugging msvc-built command-line ASL test apps from the command line:
  1. To keep bjam from destroying test executables build with bjam --preserve-test-targets
  2. For adam_smoke under cygwin: "C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe" /DebugExe bin/adobe/test/adam_smoke/adam_smoke_test.test/msvc-8.0/debug/asl-dev/link-static/threading-multi/adam_smoke_test.exe ./adobe/test/adam_smoke/rtd
  3. F10 (to stop on first line of main), or F5 to let it rip
  • Towards natural display of any_regular and poly<> in msvc and xcode debuggers.
    • C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\autoexp.dat can be extended, but not sure how useful it is. Perhaps http://msdn2.microsoft.com/en-us/library/8fwk67y3(vs.71).aspx would be more useful for some common types.
    • Xcode has Debug > Variables View > Edit Summary Format and ~/Library/Application Support/Apple/Developer Tools/CustomDataViews/CustomDataViews.plist , but I haven't explored it much either.

XCode

  • XCode uses Custom Data Formatters to display information about a variable during the debug process. These summary expressions can be entered in at the time you are debugging a variable. For example, to get the type of a value held by an adobe::any_regular_t, put this into the summary expression:
type={$VAR.type_info().identity_m.name_m}:s