mui-toolpad icon indicating copy to clipboard operation
mui-toolpad copied to clipboard

Custom components: add a console for debugging

Open Janpot opened this issue 2 years ago • 1 comments

Just like in the function query editor, we could add a browser console in the bottom right to help debugging custom components.

Screenshot 2022-07-19 at 15 07 54

benchmark:

Janpot avatar Jul 19 '22 10:07 Janpot

As per initial investigation done in https://github.com/mui/mui-toolpad/pull/711 looks like it's not a straight forward thing to do. Seems that, we need to refactor current custom component editor so that the code gets evaluated in an isolated iframe context. Once that's done we should be able to hook into console.* calls and pass them to our Console component. Let's keep this issue open and decide on a priority among other things for now

bytasv avatar Aug 08 '22 14:08 bytasv

I guess we can close this? @Janpot

prakhargupta1 avatar May 01 '23 10:05 prakhargupta1