You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "sachagriffin" started this thread

Posts: 1,852

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

1

Thursday, September 8th 2011, 6:47pm

Errors and help

Would it be possible for the error handler to show the xml line number when errors occur when events like unknown action and others or where it was called from.. actions plugins etc?
Anything extra would be helpful I think.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

2

Thursday, September 8th 2011, 7:06pm

Hi,

no, sorry, this is impossible,
the white-spaces (spaces, line-breaks, tabs, ...) are lost after the xml-loading, so it's not possible to determine the line or column of the code,

best regards,
Klaus

mindlessboss

Professional

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

3

Friday, September 9th 2011, 5:05am

Hi!
May be show part of xml code error called from?
Is it possible?

Andrey

for example

i write set(plugin[].alpha,1); - here missing name of plugin
when loading XML we see this error and show in debug window
set(plugin[].alpha,1);

or just
plugin[]


search of "plugin[]" willshow us place in code *rolleyes*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

4

Tuesday, September 13th 2011, 3:10pm

Hi,

I will look for what is possible...
maybe I will make an additional 'debug' viewer version with advanced error checking and better error messages - detailed error checking code can make the viewer itself slower and bigger so having that checking and reporting code always in the viewer is also not the best way,

best regards,
Klaus

  • "sachagriffin" started this thread

Posts: 1,852

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

5

Tuesday, September 13th 2011, 4:41pm

What about knowing what action or tag the error was created in?
Also, I think there should be an warning error generated for unexpected ending of loops. It's not a terribly big deal.
Counting occurances of "(" and ")" work too.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour