C
C#9mo ago
why me ?

✅ login code

hi im trying to run a login code but when i press login nothing happen it shows no errors but nothing happen so how can i fix it ? this is the button code
21 Replies
Buddy
Buddy9mo ago
$debug
MODiX
MODiX9mo ago
Tutorial: Debug C# code - Visual Studio (Windows)
Learn features of the Visual Studio debugger and how to start the debugger, step through code, and inspect data in a C# application.
Buddy
Buddy9mo ago
Set a breakpoint and check whether the breakpoint was triggered. If it wasn't triggered, then you are not subscribing to the button click event.
why me ?
why me ?9mo ago
sry but do u have a yt vid or something i didnt rly understand ik i have to use ands learn it but i still dont know how
Buddy
Buddy9mo ago
Buddy
Buddy9mo ago
Red highlight over the code and the red dot means a breakpoint has been set on that line. Whenever it reaches that line, the breakpoint will trigger and it gives you incredible powers (even superpowers).
why me ?
why me ?9mo ago
and how can i used that to know the error
Buddy
Buddy9mo ago
By checking if it triggers, then you know you are not subscribed to the button click event. If a breakpoint never hits, it means the code at that point is never executed, which could mean the logic is wrong or something you missed which executes that code. In this case I believe you missed subscribing to the event.
why me ?
why me ?9mo ago
and i have to do that to all of the classes and codes or only the event one
Buddy
Buddy9mo ago
Set a breakpoint on a line that you want to check
why me ?
why me ?9mo ago
it keeps giving me this error
Buddy
Buddy9mo ago
So for example you can set a breakpoint on the if statement line. (If DT.Rows.Count > 0) Are you sure you have no errors?
why me ?
why me ?9mo ago
well iam not sure tbh
Buddy
Buddy9mo ago
Check Error List
why me ?
why me ?9mo ago
i think there is
Buddy
Buddy9mo ago
Yes $paste
MODiX
MODiX9mo ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
why me ?
why me ?9mo ago
god
Buddy
Buddy9mo ago
Please paste code there then save and then copy link to here That's it.
why me ?
why me ?9mo ago
yeah its working now thx bro
Buddy
Buddy9mo ago
VS default behavior is to run old build if you have an error, for some reason. But either way, anytime.
Want results from more Discord servers?
Add your server
More Posts