Hi, I'm learning Javascript and trying to find an easy way to debug my plugins but have been having some difficulty. Here's what I've tried:
1. Using the app itself, I'll press f8 and get the nw.js dev console and set breakpoints under the source tab; however, unlike in chrome's dev console, it only seems to care about my breakpoints only once. Any time after that, they will not trigger. Which kind of blows my mind. The test is a function call from the console, so maybe that's the reason? But ultimately, I have to close the dev console, open it again, add my breakpoints again, and THEN run the function call a second time. There has to be something I'm not understanding here or nw.js' dev console is really weak haha
2. I've tried bringing the app into Webstorm (an IDE) using this: https://forums.rpgmakerweb.com/index.php?threads/debugging-development-with-intellij-webstorm.55982/ which works great; however, it doesn't mention including pixi.js which is something that the MV app uses. Am I safe to assume that by configuring an instance of the game app while pointing to a nw.js intrepreter that the pixi.js portion is being setup as well? Or is there additional setup or configuration that I would need to do in order to have it be an "apples to apples test"? It runs just fine from what I can tell, it's just that the console doesn't mention pixi.js like the application's nw.js dev console does. Makes me wonder.
I'm still very new to this and perhaps my approaches aren't the best. Is there a way that you go about debugging your plugins that is easy for you? Please advise. Thanks.
1. Using the app itself, I'll press f8 and get the nw.js dev console and set breakpoints under the source tab; however, unlike in chrome's dev console, it only seems to care about my breakpoints only once. Any time after that, they will not trigger. Which kind of blows my mind. The test is a function call from the console, so maybe that's the reason? But ultimately, I have to close the dev console, open it again, add my breakpoints again, and THEN run the function call a second time. There has to be something I'm not understanding here or nw.js' dev console is really weak haha
2. I've tried bringing the app into Webstorm (an IDE) using this: https://forums.rpgmakerweb.com/index.php?threads/debugging-development-with-intellij-webstorm.55982/ which works great; however, it doesn't mention including pixi.js which is something that the MV app uses. Am I safe to assume that by configuring an instance of the game app while pointing to a nw.js intrepreter that the pixi.js portion is being setup as well? Or is there additional setup or configuration that I would need to do in order to have it be an "apples to apples test"? It runs just fine from what I can tell, it's just that the console doesn't mention pixi.js like the application's nw.js dev console does. Makes me wonder.
I'm still very new to this and perhaps my approaches aren't the best. Is there a way that you go about debugging your plugins that is easy for you? Please advise. Thanks.