Bug 41861 - JavaScriptCore needs a debugger for debugging stand-alone (non-browser) scripts
Summary: JavaScriptCore needs a debugger for debugging stand-alone (non-browser) scripts
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 08:38 PDT by Dan Wood
Modified: 2010-07-09 12:12 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Wood 2010-07-08 08:38:22 PDT
Summary:

If you are trying to write and debug some JavaScript code that is intended to be run from JavaScriptCore, and *not* from within a browser window, there does not seem to be  way to attach the JavaScript debugger, now that Drosera has been folded into Safari.

Steps to Reproduce:

1. Write a Cocoa Application that executes some JavaScript code via JavaScriptCore methods.
2. Try to debug it.

Expected Results:

You should be able to somehow attach a JavaScript debugger so you can step through your code, examine global variables, etc.

Actual Results:

You can't.  (Unless the debugger and instructions on how to attach it are hidden away!)

Regression:

I think that when Drosera was a stand-alone application, you could do this.  But Drosera isn't part of the webkit nightlies anymore and the old version I tried crashes.

Notes:

JavaScript is DA FUTURE so we gotta figure out how to debug it!