Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose debugging menu in production app #78

Closed
simonw opened this issue Sep 8, 2021 · 2 comments
Closed

Expose debugging menu in production app #78

simonw opened this issue Sep 8, 2021 · 2 comments

Comments

@simonw
Copy link
Owner

simonw commented Sep 8, 2021

The debug menu is currently only visible in development, but could absolutely be useful for end-users especially once they start trying out things like writing their own plugins (see #75).

datasette-app/main.js

Lines 664 to 676 in 8d2c1b9

if (process.env.DEBUGMENU) {
menuTemplate.push({
label: "Debug",
submenu: [
{
label: "Open DevTools",
click() {
BrowserWindow.getFocusedWindow().webContents.openDevTools();
},
},
{
label: "Show Server Log",
click() {

@simonw
Copy link
Owner Author

simonw commented Sep 8, 2021

One way to do this could be with a File -> Debug -> [ ] Enable debug menu checkbox menu item. Or maybe a button on the About dialog?

@simonw
Copy link
Owner Author

simonw commented Sep 8, 2021

Datasette__temporary

@simonw simonw closed this as completed in 79fd738 Sep 8, 2021
@simonw simonw added this to the 0.2 - plugins and progress bars milestone Sep 9, 2021
simonw added a commit that referenced this issue Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant