From mboxrd@z Thu Jan 1 00:00:00 1970 X-Greylist: delayed 488 seconds by postgrey-1.37 at hurricane; Sat, 01 Jun 2019 05:01:41 PDT Received: from resqmta-ch2-04v.sys.comcast.net (resqmta-ch2-04v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:36]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 70C70779AA for ; Sat, 1 Jun 2019 05:01:41 -0700 (PDT) Received: from resomta-ch2-11v.sys.comcast.net ([69.252.207.107]) by resqmta-ch2-04v.sys.comcast.net with ESMTP id X267hyewUhsi0X2Zoh1HDY; Sat, 01 Jun 2019 11:53:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1559390012; bh=QQSFBkqFcPeKdk54ccG1cDJHP295lRAtz+YomadXRwU=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=QCBPfZH/qur1MHWeW68hf0xYx5Jjz4TQpbXjyTdmbB8ujH4zIkmrxQt6XhfX/zvdg +IYBiWl3WpNCV81rBN6Nqhr0n0IjA4TlBJdoSNk0Iw8BuXiLMkE6slMzlpHNBoWR+i mwWItLmc2VoEqPD01aYuuFb2tGaLlaYv0JXJ99N+3Qy1vFjjvI4KfnLCUiEmP3Dlg2 DRQ2LTpS36AIKlTjKnjsAtRvcOqKB+LKBK1QaIMctD2OhHKPEp8Ph4tdZ2W73nKeqc p9cEkgS0VIhKr2Lz6SGY2LrLDNSNl+hjym4WP7Q/t+C+XBFP7HmUp2Z6JRzkb+Umnf xWt6+wU2umTvw== Received: from unknown ([IPv6:2601:408:c300:8f09:21e:4fff:fec2:a0f1]) by resomta-ch2-11v.sys.comcast.net with ESMTPSA id X2ZnhLdOatfFZX2ZnhUGky; Sat, 01 Jun 2019 11:53:32 +0000 X-Xfinity-VMeta: sc=-10;st=legit To:edbrowse-dev@edbrowse.org From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E) Subject: [edbrowse-dev] local version of website Date: Sat, 01 Jun 2019 07:53:30 -0400 Message-ID: <20190501075330.eklhad@comcast.net> X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-021203 Content-Transfer-Encoding: 7bit This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --nextpart-eb-021203 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable It is not easy to figure out what is wrong with edbrowse js in the real = world. I always seem to need a local copy of the website, with all its js = files, deminimized, and css files too, so I can put in debug prints, = and breakpoints, etc. That task alone use to take hours. I'm trying to streamline it with a snapshot() function. You call it from within jdb. Let's use nasa as the quintessential example, an incredibly complicated website just to disseminate information. 1. make a directory somewhere called nasa and cd into it. This directory is empty. 2. Call up edbrowse and set demin for deminimization, and db3 if you = want to see what is going on. b https://www.nasa.gov 3. Verify you have about 180 lines, you got real stuff. Try to ignore = the errors for now. 4. jump into jdb and run snapshot(). 5. Use . to exit out of jdb, then ub to unbrowse. 1r from This sets the base tag. w base Save the home page to a local file. qt We're done here. 6. ls to see what has happened. 7. edbrowse the base file, just a local file. db3 to see what is happening, and b to browse. Almost all of the javascript files, and certainly the ones we care = about, are fetched locally from your directory. Also the css files, though I don't have this working for @import yet. You should get the same errors, and the same 180 lines of stuff. 8. You can change the js files, add alert statements, breakpoints, etc, = and browse and change and browse again, and otherwise debug. This should support nontrivial debugging. You don't need a local web server to do this, which I needed in the = past. For ongoing work, change the filenames to be more intuitive. Perhaps f2.js is vendor.js and f3.js is nasa.js. Just make the same change in the jslocal map. Maybe I can improve the software to come up with better filenames. There's more work to do here so send along patches and suggestions. Karl Dahlke --nextpart-eb-021203--