Impossible to test URL parameters with debug?

Not favoritedFavorited Favorited 0 favourites
  • 5 posts
From the Asset Store
Testing Viable Gaming Ideas using Construct2 & Construct3!
  • Since the preview function insists on opening previews in a new window instead of a tab (which for some reason overrides a browser's "tab over window" settings), and since the preview doesn't have an address bar, and since you can't remote debug, and since you can't copy the URL of the preview and load it in a new tab (which just generates a white page), how are you supposed to be able to test URL parameters with debug mode turned on?

  • Hello,

    Based on your message, I guess you want to test Browser or Ajax url ?

    If you want to test URL, you can press F12 and check "Network" for XHR request.

    If the window is not showing, you need to click outside of the game (but still on the preview game window)

    And if you want to test ingame, just create your debug mod.

    Put a text object on your game, and add some event that write logs you want.

  • Hello,

    Based on your message, I guess you want to test Browser or Ajax url ?

    If you want to test URL, you can press F12 and check "Network" for XHR request.

    If the window is not showing, you need to click outside of the game (but still on the preview game window)

    And if you want to test ingame, just create your debug mod.

    Put a text object on your game, and add some event that write logs you want.

    I'm looking to modify the URL parameters during runtime with the debugger open.

  • Okay, I get your point.

    You can export as HTML5 and run it locally (for example with Wamp64) to test real URL parameters.

    But you don’t really need to export every time — you can also simulate them by setting the variables manually, and later replace that logic with Browser.QueryParam("myParam") when you’re ready to test with actual parameters.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • ChatGPT to the rescue! :)

    It's possible to fake URL parameters in preview or debug with a bit of scripting:

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)