wechatjs/vdebugger

Import modules/custom objects?

Closed this issue · 2 comments

Is it possible to import modules, custom objects that can be accessed in the evaluate function?

Do you mean using import in vDebugger.evaluate? No, because vDebugger.evaluate is used for running expressions instead of statements. If you want to access your custom objects, I think the only way is to mount them at the global this like window, and access from global.

Or, if you mean using import in vDebugger.debug, that's possible. There are two ways.

Awesome! Will try these. Thank you @Siubaak