How does JavaScript intelllisense handle exceptions?
-
segunda-feira, 30 de julho de 2012 22:10
I have a strange behavior:
try{ intellisense.logMessage("BEGIN TRY"); //var test = 1 / 0; throw new WinJS.ErrorFromName("ArgumentOutOfRange", "invalid..."); intellisense.logMessage("END TRY"); } catch (ex) { intellisense.logMessage("CATCH"); }With this, I have the (unexpected) result of :
06:05:28.9700: BEGIN TRY06:05:28.9700: END TRY
So, are all exceptions simply ignored? Does there is a maximum of exceptions? Or is there any other limitations, like the file numbers? I'm currently investigating on why IntelliSense is unstable with my custom extensions, and I would help to have more détails.
Thanks.
- Editado Instriker segunda-feira, 30 de julho de 2012 22:13
Todas as Respostas
-
segunda-feira, 30 de julho de 2012 23:39
In general all exceptions are ignored. Code in a catch block will not affect IntelliSense (except if you are typing in that catch block).
This posting is provided "as is" with no warranties, and confers no rights.
- Marcado como Resposta Min ZhuMicrosoft Contingent Staff, Moderator terça-feira, 31 de julho de 2012 06:53
- Não Marcado como Resposta Min ZhuMicrosoft Contingent Staff, Moderator terça-feira, 31 de julho de 2012 06:53
- Sugerido como Resposta Min ZhuMicrosoft Contingent Staff, Moderator terça-feira, 31 de julho de 2012 06:53
- Marcado como Resposta Instriker terça-feira, 31 de julho de 2012 13:57

