-
Notifications
You must be signed in to change notification settings - Fork 158
How to debug Plugins? #77
Comments
I just insert |
But then where do you see the console log? |
Press F12 - it'll open devtools. |
Pressing F12 does nothing. |
Do you have afaaeed? |
No was using v0.0.2-rc4, Updated to the latest release which is v0.0.3. |
Better use |
I have noticed that using |
I was having this same issue trying to use console.log. Fixed it by including this line just inside module.exports: And calling it like this: |
Hey everyone. Sometimes I face an issue when DevTools shows just let _ = require('lodash');
module.exports = (context) => {
return {
startup() {
context.logger.log(_); // null
context.logger.log(_.identity(2)); // 2
}
};
}; What's the matter? |
@appetizermonster have ideas? ^^^ |
There is no advanced way to debug plugins for now. we should make it. |
I have v0.5.2 which should include afaaeed but F12 does not do anything, F5 does however work which I see that commit also had some code in for. Is F12 expected to be working right now? |
@cpriest I'll take a look at it, thanks for the reporting |
I had the same issue as @cpriest. I'm on v0.5.2 and F12 does nothing. Not sure if it is pertinent, but I used the pre-built binary. |
per commit electron/electron@eac2e7c remote needs to be required as require('electron').remote see discussion here: electron/electron#3755 should alleviate concerns in this discussion: hainproject#77
F12 should be fixed now. F12's handler was firing, but the dev tools weren't being opened properly see #212 |
How do you debug plugins when you are developing plugins?
The text was updated successfully, but these errors were encountered: