After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744099 - [RFC] Interactive Debugger
[RFC] Interactive Debugger
Status: RESOLVED DUPLICATE of bug 787573
Product: gjs
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2015-02-06 15:02 UTC by Sam Spilsbury
Modified: 2017-09-12 05:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allow importer to be defined in other compartments (4.38 KB, patch)
2015-02-06 15:02 UTC, Sam Spilsbury
committed Details | Review
jsapi: Refactor out gjs_eval_file_with_scope (4.93 KB, patch)
2015-02-06 15:03 UTC, Sam Spilsbury
none Details | Review
Debugger Prototype (49.89 KB, patch)
2015-02-06 15:04 UTC, Sam Spilsbury
none Details | Review

Description Sam Spilsbury 2015-02-06 15:02:12 UTC
This is a prototype for an interactive debugger for gjs. Please feel free to rip it apart. Its at a very early stage right now, but I'd like to get some feedback as to whether or not I'm going in the right direction with this.

Effectively, this ties in the JS Debugger API with a readline based console. The goal is to have something that's gdb-like.

At the moment only single-stepping and a "frame step" mode is available, but hopefully there should be more soon.
Comment 1 Sam Spilsbury 2015-02-06 15:02:57 UTC
Created attachment 296283 [details] [review]
Allow importer to be defined in other compartments
Comment 2 Sam Spilsbury 2015-02-06 15:03:44 UTC
Created attachment 296284 [details] [review]
jsapi: Refactor out gjs_eval_file_with_scope

This function was being used in coverage.cpp, but its generally useful, so refactor it out.
Comment 3 Sam Spilsbury 2015-02-06 15:04:18 UTC
Created attachment 296285 [details] [review]
Debugger Prototype

Feel free to rip it to shreds :)
Comment 4 Philip Chimento 2017-02-27 04:40:24 UTC
Review of attachment 296283 [details] [review]:

This patch seems to have been already committed as part of commit c93f1edf7b839f40556bdee242b6b706eee4ce58.
Comment 5 Philip Chimento 2017-09-12 05:50:44 UTC
I've rebased the debugger patch on GJS master and moved it to bug 787573.

*** This bug has been marked as a duplicate of bug 787573 ***