No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Firefox debug ?

    Framework
    2
    4
    172
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Incremental last edited by Incremental

      Hello, probably a noob question, but I’m mainly able to debug my code when there is an error, when Firefox debug console debugger tab stops on the faulty line.

      But what about when there’s no error and you want to put a break ?
      When I search for my code, I found it in webpack-internal, but I find more than one file…
      and the content is not my source…

      4f6a1862-8f5f-4cab-94b3-4f548a667d35-image.png
      What is the best way to debug ? Thanks

      1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel last edited by dobbel

        @incremental

        This gives me sourcemaps for all components in firefox and chrome under FIREFOX > Debugger > Main Thread > Webpack > src:

        extendWebpack(cfg) {
               cfg.devtool = 'source-map';
        

        See her for more detail about the devtool option values:
        https://webpack.js.org/configuration/devtool/

        I 1 Reply Last reply Reply Quote 0
        • I
          Incremental @dobbel last edited by

          @dobbel thanks a lot it works perfectly with :
          https://quasar.dev/start/vs-code-configuration#Debugging-a-Quasar-project-in-VS-Code

          build: {
            devtool: 'source-map'
          

          I think I should remove it for production… ?

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @Incremental last edited by

            @incremental said in Firefox debug ?:

            I think I should remove it for production… ?

            That’s probably a good idea.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post