C
C#15mo 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
Buddy15mo ago
$debug
MODiX
MODiX15mo 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
Buddy15mo 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 ?OP15mo 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
Buddy15mo ago
Buddy
Buddy15mo 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 ?OP15mo ago
and how can i used that to know the error
Buddy
Buddy15mo 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 ?OP15mo ago
and i have to do that to all of the classes and codes or only the event one
Buddy
Buddy15mo ago
Set a breakpoint on a line that you want to check
why me ?
why me ?OP15mo ago
it keeps giving me this error
Buddy
Buddy15mo 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 ?OP15mo ago
well iam not sure tbh
Buddy
Buddy15mo ago
Check Error List
why me ?
why me ?OP15mo ago
i think there is
Buddy
Buddy15mo ago
Yes $paste
MODiX
MODiX15mo 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 ?OP15mo ago
god
Buddy
Buddy15mo ago
Please paste code there then save and then copy link to here That's it.
why me ?
why me ?OP15mo ago
yeah its working now thx bro
Buddy
Buddy15mo 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