Hi!
Today I want to announce that the Cappuccino framework now supports javascript source maps. This allows browser debugging and stepping in the Objective-J source file instead of the compiled javascript file.
Source maps are now turned on for DEBUG mode by default. Also new projects has this for DEBUG mode.
It is really nice to be able to step into Foundation and AppKit methods and be able to easily read the code and all the comments directly in the debugger.
To turn this option on for your project add the -S flag in your Jakefile. Search for the setCompilerFlags function to find where the compiler options are set.
In the Browser you need to add SourceMap as compiler option to your index-debug.html file. The line should look something like this:
OBJJ_COMPILER_FLAGS = [... , "SourceMap"];
It is also recommended to add the compiler option "InlineMsgSend" for easier debugger "step into" functionality and cleaner stack display.
In the Jake file add the
--inline-msg-send flag. In the index-debug.html file add "InlineMsgSend".
To use it you need the laster Cappuccino version from the master branch on github.
https://github.com/cappuccino/cappuccino
All browsers support source maps but at the moment Chrome as the best support.
Please check it out!
Happy coding,
- Martin