Faster debugging of browser's internal JavaScript
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Faster debugging of browser's internal JavaScript
Currently, I've to do ./mach build to get the changes to reflect in the browser. This takes almost 2 minutes on my system. I test something in the browser, spend a few seconds modifying the code further, and again I've to wait 2 minutes to see the changes in the browser.
Is there a way to speed up the process?
Is there a way to speed up the process?
Re: Faster debugging of browser's internal JavaScript
You can edit the browser's JS in your objdir's dist/bin and do a mach run after that to relaunch the browser (potentially with -purgecaches). Disadvantage is of course that any changes you make aren't tracked and you'll have to manually make the same changes again in the source tree, which is a risky process and easy to make mistakes in. Don't try to shortcut it by copying js from the objdir back to source either because you cant do that due to preprocessing of most files.
I suggest you only do this for very small changes; otherwise just be patient, make as many changes as you can in one go and deal with the mach build wait.
I suggest you only do this for very small changes; otherwise just be patient, make as many changes as you can in one go and deal with the mach build wait.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Faster debugging of browser's internal JavaScript
Two minutes is better than a full rebuild every time
I have come to enjoy those two minutes. Gives me a chance to take a drink of water or soda or take a hit off my vape. Speed isn't everything!
I have come to enjoy those two minutes. Gives me a chance to take a drink of water or soda or take a hit off my vape. Speed isn't everything!
Re: Faster debugging of browser's internal JavaScript
Good to know. Thanks!
I'll try to improve myself to make lesser passes and probably relax in between.
I'll try to improve myself to make lesser passes and probably relax in between.
Off-topic:
As someone said: There is more to life than speed.
Re: Faster debugging of browser's internal JavaScript
Easy -- just upgrade to better hardware!
Re: Faster debugging of browser's internal JavaScript
So you come to sour another thread with fake sarcasm?
Re: Faster debugging of browser's internal JavaScript
- WHEREAS, It's not fake sarcasm at all -- just because I put an emoticon within the jest tag doesn't mean it's fake humor; and
- WHEREAS, the thread is over with, so who cares anyway; and
- WHEREAS, if you continue this thread any longer on this subject then, quite frankly, the blame's really on you for souring this thread, because nobody else would even bother to berate me about something as totally innocuous as what I said; and
- WHEREAS, plus, what I said is what most established computer professionals would say!
Re: Faster debugging of browser's internal JavaScript
All right, @Squash that's quite enough. Go cool your heels for a few days and come up with actual meaningful posts when you get back.
Did you know that moral outrage triggers the pleasure centers of the brain? It's unlikely you can actually get addicted to outrage, but there is plausible evidence that you can become strongly predisposed to it.
Source: https://www.bbc.co.uk/programmes/p002w557/episodes/downloads - "The cooperative species" and "Behaving better online"
Source: https://www.bbc.co.uk/programmes/p002w557/episodes/downloads - "The cooperative species" and "Behaving better online"