edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [edbrowse-dev] faux stepping
@ 2019-06-10  4:06 Kevin Carhart
  2019-06-10 11:39 ` Karl Dahlke
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Carhart @ 2019-06-10  4:06 UTC (permalink / raw)
  To: edbrowse-dev


An idea: do you think it's possible to have a Step by breakpointing every 
moment in the javascript run?  What if uvw trace injected not just an alert, but 
alert;bp?





^ permalink raw reply	[flat|nested] 3+ messages in thread

* [edbrowse-dev] faux stepping
  2019-06-10  4:06 [edbrowse-dev] faux stepping Kevin Carhart
@ 2019-06-10 11:39 ` Karl Dahlke
  2019-06-11  6:00   ` Kevin Carhart
  0 siblings, 1 reply; 3+ messages in thread
From: Karl Dahlke @ 2019-06-10 11:39 UTC (permalink / raw)
  To: edbrowse-dev

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

Well my first thought is that there are a million instructions to step through before you get to the one you want, or before something interesting happens,
so you would tear your hair out in frustration before then.

My second thought is, I did this for some reason,
and a million alerts flowing by for you to look at manually would be just as frustrating as a million breakpoints,
so maybe there aren't a million, maybe there are only a thousand and it's manageable.

Third thought; if you want to implement uvw = bp, injecting breakpoint instead of alert, that's fine with me.
I imagine it would be a copy of the trace code but injecting something different.
I'm working on some other things but they don't touch startwindow.js.

You probably want to have a local snapshot to work with, already deminimized, so the line numbers mean something,
then browse again with uvw = bp.

Is there something specific you're trying to track down?

I'm over here messing with the possibility of downloading all the js files and css files in parallel in the background,
and not really sure if it's a good idea anyways,
whether the performance improvements (if any) are worth the increase in code complexity.
Trouble is, there's no way to know except to implement it an find out.

Karl Dahlke

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [edbrowse-dev] faux stepping
  2019-06-10 11:39 ` Karl Dahlke
@ 2019-06-11  6:00   ` Kevin Carhart
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Carhart @ 2019-06-11  6:00 UTC (permalink / raw)
  To: edbrowse-dev



Thanks Karl!  No, there isn't anything specific right now.  When I played 
with Neil Fraser's JS Interpreter, I was stepping a lot and learned a lot. 
One way around the problem of too many instructions until you get to the 
one you want would be if there could be a counter that increments with 
every step, so that you could stepTo(5000) and only turn echoing on once 
you get to 5000, to avoid overwhelming messages.  Then quit, do it again 
and zap to the same place.  But as of yet I do not have use cases with 
practical consequences.  I will play around with it later, using uvw.



  On Mon, 10 Jun 2019, Karl Dahlke wrote:

> Well my first thought is that there are a million instructions to step through before you get to the one you want, or before something interesting happens,
> so you would tear your hair out in frustration before then.
>
> My second thought is, I did this for some reason,
> and a million alerts flowing by for you to look at manually would be just as frustrating as a million breakpoints,
> so maybe there aren't a million, maybe there are only a thousand and it's manageable.
>
> Third thought; if you want to implement uvw = bp, injecting breakpoint instead of alert, that's fine with me.
> I imagine it would be a copy of the trace code but injecting something different.
> I'm working on some other things but they don't touch startwindow.js.
>
> You probably want to have a local snapshot to work with, already deminimized, so the line numbers mean something,
> then browse again with uvw = bp.
>
> Is there something specific you're trying to track down?
>
> I'm over here messing with the possibility of downloading all the js files and css files in parallel in the background,
> and not really sure if it's a good idea anyways,
> whether the performance improvements (if any) are worth the increase in code complexity.
> Trouble is, there's no way to know except to implement it an find out.
>
> Karl Dahlke
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-11  6:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-10  4:06 [edbrowse-dev] faux stepping Kevin Carhart
2019-06-10 11:39 ` Karl Dahlke
2019-06-11  6:00   ` Kevin Carhart

edbrowse-dev - development list for edbrowse

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/edbrowse-dev

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 edbrowse-dev edbrowse-dev/ http://inbox.vuxu.org/edbrowse-dev \
		edbrowse-dev@edbrowse.org
	public-inbox-index edbrowse-dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.edbrowse.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git