edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: edbrowse-dev@lists.the-brannons.com
Subject: [edbrowse-dev] $bp
Date: Sat, 01 Jun 2019 18:06:31 -0400	[thread overview]
Message-ID: <20190501180631.eklhad@comcast.net> (raw)
In-Reply-To: <alpine.DEB.2.21.1906011151540.169627@carhart.net>

[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]

> indistinguishable from jdb. You can run ok(window) or whatever!

Almost, but more restricted.
In jdb you can type e2 and switch to another session and do other things, like look at the code you're working on,
or change db levels or shell escape or a few other things; not here.
It's just js expressions only.
So if you want to read the code around your breakpoint you have to do it from another console / window.
I wanted to do all those other things here but it's just too hard for tecnical reasons.
In the breakpoint, js is actually running.
In jdb it is not.
Thus bp is more restricted and to remind you of that, you get the bp: prompt.

You have to  place your breakpoints then recompile so to speak, or actually, rebrowse, so it's not as cool as real breakpoints,
but you know, it's better than nothing.
I use to stick code in to copy local variables up to global so I could look at them after the fact, guessing which variables I might want to see, etc, that was pretty awkward.

I also mentioned in my comments that while in this breakpoint you can change local variables, then . to exit and duktape continues
with the modified variables; but not sure you should really do that.

Karl Dahlke

      reply	other threads:[~2019-06-01 22:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-01 18:52 Kevin Carhart
2019-06-01 22:06 ` Karl Dahlke [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190501180631.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).