#Debugger does not work on imported file

3 messages · Page 1 of 1 (latest)

elder spire
#

I running the same code in two different scenarios on Deno (latest version), first (working) scenario is to run the code from the main file.
Second - running the same code from imported file - debugger does not stop.
Tested on chrome debugger and on Intellij.
(Same tested on node, works well on both scenarios)

function TestF() {
const bot = new Bot(dev_token);

bot.on('message', (ctx: any) => {
console.log(ctx.msg.text); // Breakpoint is here
ctx.reply(Received ${ctx.msg.text});
});

bot.catch((err:any) => {
console.log('Catch err: ', err);
});

bot.start();
}

TestF();

Is it a known issue?
I did not found something relevant on google
I already left Deno before year for other critical issues, I 'm very hope that I can stay with Deno this time. 😥

Any suggestions?

UPDATE:
Reduced the code to simple setTimeout, same issue...

setTimeout(() => {
console.log('Hello External!'); // Breakpoint
}, 3000);

eager sundial
#

I'm not sure I understand your problem

#

What do you mean it works with main file but not imported file?