Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
Readable debugging in Chrome devtool

Is there a way to ensure when debugging for the code to be readable in Chrome browser (or another browser like Edge). For the code to appear the same way as written.

Even when I use pretty print still find it unreadable.

For example a block of code written as follows in IDE:

{provideData() || (!moduleState.provideError && moduleState.provideData) ? (

comes up as follows in Chrome Browser.

enter image description here

Is it possible be it via some browser settings or code configurations to achieve the code to look the same was as it was written in a browser during debugging?

Edit:

The suggested solution uses CRA but my app was not developed using CRA.

Believe the minification is coming from the following within my webpack.config.js file.

  plugins: [
    new CleanWebpackPlugin([paths.out]),
    new webpack.LoaderOptionsPlugin({ minimize: true, debug: false }),
    new UglifyJsPlugin({
      test: /\.jsx?$/i,
      uglifyOptions: {
        beautify: false,
        mangle: { keep_fnames: true },
        compress: {
          dead_code: true,
          drop_console: true,
          drop_debugger: true,
        },
        comments: false,
      },
    }),
    new CompressionPlugin({
      asset: '[path].gz[query]',
      algorithm: 'gzip',
      test: /\.js/,
      threshold: 10240,
      minRatio: 0.8,
    }),
  ],
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The mode should be on 'development'.

Try this in the webpack config:

mode: slsw.lib.webpack.isLocal ? "development": "production",
optimization: {
    minimize: false
}

Also try deleting the bundled file.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!