Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

the companion bridge is waiting for a debugger

ANSWERED

My app shows up on Versa but not on the emulator. Obviously I'm missing something simple.

 

This is on a Windows PC.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

OK - solved. Not sure why I got the original message but it's working now

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

I'm also missing something about starting the app - maybe related. I used the HRM sample app as a start but don't see the display even though the app is logging and running

 

{Note that this is typescript - .ts}

 

import document from "document";

try {
const test:string = "hello";
console.log("App Started");
const myLabel = document.getElementById("hrm");
myLabel.textContent = "hello";
console.log(`myLabel contains ${myLabel.textContent}`);

let ctr = 0;
let counter = () => {
myLabel.textCOntent = `Count: ${++ctr}`;
console.log(`Counter: ${ctr}`);
};
setInterval(counter, 2*1000);

}
catch (e) {
console.error(`Error ${e}`);
}
console.log(`App ran!`);
setTimeout(() => {console.log("back again");}, 10*1000);

 

Best Answer
0 Votes

OK - solved. Not sure why I got the original message but it's working now

Best Answer
0 Votes