Plugin Development HowTo
-
I'm building a new plugin for eric6/pymakr. The plugin activates but I can't find a way to see output from print or logging statements. Any tips?
-
Hello @wakatime
First thing you need to do is switch to expert mode.
- In Pymark go to Settings > Enable expert mode
- Then go to pymakr.ini (location can vary depending on the OS), go to the UI section and add AdvancedBottomSidebar=true
After this, restart you PyMakr and you should ba able to see a new tab called Log-Viewer. Here you should be able to see your plugin output
-
@Roberto awesome, thank you!
-
It looks like
pymakr.inishould be at~/.pymakr/pymakr.inibut it's not there. Also, I see the Log-Viewer window in Window -> Windows -> Log-Viewer but getting this error when trying to show that window:QStackedWidget::setCurrentWidget: widget 0x7f8698685a00 not contained in stack
-
Nevermind, found it at
~/.config/Pycom/pymakr.iniand the Log-Viewer window shows the plugin print statements. -
Finished the plugin in case anyone is interested in trying it:
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login