Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

245
Visualizações
JavaScript, how to debug imported library when not possible to recover console.log error?

In Package that Im using in Ionic Capacitor project, I have changed SoundFont player, It works great in that package, loads sf2 file and executes play action as well, when Im running that package on local host by npm start.

How ever, when I run my main project, there is no sound, I can see in console log that soundFont was successfully loaded by package Im using in my project, also excately the same SoundFont Im referencing from my main project and loading it successfully into it as well, and playing it too, Im also seeing all the console logs logged in package up to a point play action is used, but console logs immediately after that I can't see in my console log, so I presume, there is some error thrown or something, that stops executing code at that stage. but I don't know how to catch it. Also these errors probably aren't critical, as everything else works normally, including cursor that moves with every play call in package code. Otherwise, if soundFont isn't successfully loaded, both my main and package local servers crash on calling the play function.

https://github.com/enjikaka/sf2-player. --sf2 player im using in that package, package im using isn't public, so I can't share it.

console.log("key");
console.log(key);
console.log("sf2.noteOn(key)");
console.log(sf2.noteOn(key));

Upper 4 console logs I see in my console, bottom two console logs I can't see (though I see all of them when running package in local server, just that then everything works as expected, no errors thrown).

sf2.noteOn(sf2.noteOn(key));
setTimeout(() => sf2.noteOff(key), 500);
console.log("sf2.noteOn(key 22222)");
console.log(sf2.noteOn(key));

Is there a way to see what's happening with last four lines of code in my main project console log?

Also my main project is written in react, package is written in TypeScript

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda