Sie sind nicht angemeldet.

1

Freitag, 13. Mai 2022, 22:27

debugging krpano

Hi,

Can someone add a step by step description of how to debug krpano?
my xml file starts with debugging flags on:
<krpano version="1.20.11" title="Tour" debugmode="true" consolelog="true">

and one of my hotspots has the following:
onclick="trace(onclick111)"

After clicking I'm going to my chrome console and see nothing.
Can someone understand what am I missing here?

Thanks,
Eli.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Freitag, 13. Mai 2022, 23:38

Hi,

Consolelog true must be logkey="true"

Tuur *thumbsup*

3

Samstag, 14. Mai 2022, 10:48

Hi,

consolelog is an embedding setting, not a xml setting:
https://krpano.com/docu/html/#consolelog

e.g.

Quellcode

1
embedpano({..., consolelog:true});


Best regards,
Klaus

4

Samstag, 14. Mai 2022, 12:01

Sorry to bother but still no trace messages in Chrome console. maybe something with my Chrome settings?
Anyway, I changed the code as you guys suggested:
<krpano version="1.20.11" title="Reelook Tour" debugmode="true" logkey="true">

.
.
<scene name="scene_jbjgjzjhju_2" title="My Title" onstart="" thumburl="panos/jbjgjzjhju_2.tiles/thumb.jpg" lat="" lng="" heading="">
.
.
<!-- Here is my Hotspot -->
<hotspot name="hsp_0_3" style="link_hs_sm" url="%FIRSTXML%/add_hotspot/picture/icon_L_9.png" onclick="trace(lala);"/>
.
.

I would appreciate if someone could take a look. It seems to me that maybe I'm missing something very basic here...

Thanks,
Eli

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

5

Samstag, 14. Mai 2022, 12:29

Hi,

Use/call showlog();
Or press the 'tilde' key ..

Tuur *thumbsup*

6

Samstag, 14. Mai 2022, 21:51

Hi Tuur,

Thanks :-). looks like you solved my problem.
Although, still, trace messages are not seen in Chrome console this ('tilde') debug window will do the job.
I can debug now and this is what important.

Thank you again,
Eli ;-)

7

Dienstag, 17. Mai 2022, 12:30

Do as Klaus said inside your .html file.
The embedpano command needs the addition
„consolelog: true“
to display all krpano console messages also in the browser console.