DevTools

Looking for some help with DevTools trying to debug Application Studio events. I apologize in advance but I am not sure what the names of the items that showed up in DevTools/Console are. The first few times I opened DevTools there were green lines that corresponded to the Actions in my button click event.


I just want to get the expandable green entries to debug some other actions I want to add.
Anybody got a clue as to how I can see these again?

This is all I get after clicking the button with the onClick event.

1 Like

If you click anywhere on the kinetic window (not in the debug section) and hit CTRL+ALT+8 it toggles on the debug logging and then you should see all of the events firing.

If you want the page to always load with debugging enabled (like while you’re developing a new layer) you can use this to set it automatically.

8 Likes

If I put that event in that “Toggles” debug mode doesn’t that disable debug the next time you run the preview?

#epDebug.toggleDebugLogging()#

As long as you close the preview window when you go back to make changes, the new window would open with it off and the event will turn it back on.

Is this DebugToggle set up correctly?

Just double checked the one I have set up this way and I have a different debug command. I also have my event on Window OnLoad but your trigger should also work.

1 Like

console-write gonna be my new friend! :fire:

Is this the way you have your Trigger?

Mine was on a custom dashboard, so I made the Window_OnLoad event and just put it there. I’d guess you’d need to do it after instead of before because you need the window to be there before you can change the logging setting for the window.

1 Like

So Here is what I did and it worked. I am posting this so “Everybody else’s Chat GPT Agent (LOL)” can find it as well.
My Event

My Trigger

Then i added a row-update to see if it fired and updated the value of a textbox.

FYI this worked above.

I am still struggling with the Debug. I am sure you have made some classic customizations and had Visual Studio fire up to debug the code. Is there any way to make DevTools open before the Preview so you can see what is happening when the Preview Window loads, i.e. the step where Visual Studio stops and waits for the Continue to be pressed?

I’m new enough to kinetic that I’ve never done a classic customization, I started in the browser UI and only open the client for functions (Some BPMs and BAQs early on before they were available in the browser.

You don’t necessarily need to have the dev tools open when the window loads. If the event is working, it will start writing all of the event details to the console in the dev tools and when you open it a second or two later, you’ll be able to see everything after the window_OnLoad event.

Is there a particular event that’s not working that you can’t troubleshoot?

1 Like

I found a few things I did wrong when I created the app and I am going to do it over with this “knowledge”
Application Studio is so Quirky. Not sure if you are old enough to remember the original Saturday Night Live cast’s nickname “Not Ready For Prime Time Players”, that is what I call this Application Studio. Too many bugs.

Thanks for your help. I am sure I will be posting again.

Oh you sweet innocent child … to not be tainted by what once was and no longer is … what a life… what a life!!! :joy:

Watery Eyes Please GIF by Pokémon

7 Likes

Cory over here like:

Born In Darkness GIFs - Find & Share on GIPHY

6 Likes

It’s been a really interesting perspective on here, having no experience with THE OLD WAYS

1 Like

Paola Bracho Gasp GIF by MOODMAN

1 Like

sorry, LAS VIEJAS COSTUMBRES

2 Likes