How do I fix this type of error System.Diagnostics.DebuggerStepThrough()

software is fun
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.  
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()>

Private Sub InitializeComponent()
    Me.components = New System.ComponentModel.Container
    Me.cmd_View_Old_Notes = New System.Windows.Forms.Button
    Me.cmd_Save_Note = New System.Windows.Forms.Button
    Me.rpt_Viewer = New CrystalDecisions.Windows.Forms.CrystalReportViewer

The error in the Visual Studio 2019 IDE is

Severity    Code    Description Project File    Line    Suppression State
Error   BC32035 Attribute specifier is not a complete statement. Use a line continuation to apply the attribute to the following statement. ProjectName PathToProject\frm_Main.vb   20  Active

I am updating an old project from Visual Studio 2005 to VS2019. It uses VB.Net

I can't add a _ after DebuggerStepThrough()> because VS2019 removes it automatically

Jimi

► Remove the space/line feed between the Attribute and the method this Attribute is applied to.

From the documentation:

Error BC32035 - Attribute specifier is not a complete statement

(...) An attribute block appears alone on a source-code line. Attributes must be applied at the beginning of a declaration statement, and they must be part of that statement. (...)

To correct this error:

(...) If no declaration statement is associated with the attribute block, either supply one or remove the attribute block. (...)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How do I fix this Java notarization error?

What is a exception error and how do I fix it?

How do I fix TypeError: unhashable type: 'list' Error

How do I fix a dimension error in TensorFlow?

How do I 'use diagnostics' for Perl on Cygwin?

How do I fix the following error?

How do I fix JMeterPluginsCMD "Missing plugin type specification" error

How do I fix this Elastic Beanstalk error when deploying a Flask app: Python 3.7.0 was not found on your system

How do I fix the error in my permission system? (DISCORD.JS)

"Unable to cast object of type 'System.Byte[]' to type 'System.IConvertible'." error in Photo: why and how do I fix it?

What is "Type mismatch" and how do I fix it?

How do I fix this Eclipse error?

How do I fix this data type error?

how do I fix the type mismatch issue?

Liking system, how do I fix it?

how do i fix error type object() takes no parameters

How do I fix a “System command error” when running “devtools::build_vignettes()” in R?

Error when attaching file to System.Net.Mail. How do I fix this error?

How do i fix this String formatting error

How do I fix a conversion from type 'ListViewItem' to type 'Integer' is not valid.' error?

How do i fix Outlook VBA Compile Error Type Mismatch

how to fix this error "Microsoft.Extensions.Azure: Could not load file or assembly 'System.Diagnostics.Tracing, Version=5.0.0.0,"

What causes error "argument of HAVING must be type boolean, not type money", and how do I fix it?

Please how do I fix this SMTPConnectError Error?

How do I fix Error: adder_out is an unknown type

How do I fix Parser Error Message: Could not load type?

How do I fix this to avoid this key error?

How do I fix this generic constraint error?

How do I fix `System.MissingMethodException: Constructor on type Microsoft.EntityFrameworkCore.DbSet`1 not found.`?