Jump to content

JAVAAAAAAAAAAAAA!

babadoctor
Go to solution Solved by madknight3,

You didn't provide us much to go on.

 

Use a debugger. Set breakpoints around where the problem is happening. Note that you can set conditions on breakpoints which can be very useful. Step through the code line by line if need be. Watch variables, find where they start storing invalid data.

Some jerk friend that i have asked me to debug his shitty java code that he made

 

we are best friends so naturally i could not decline (I owed him one)

 

He said it was a little bad but i said how bad could it be? I almost had a heart attack...

 

its so bad it hurts my eyes to look at it

 

anyone have any tips in java debugging?

 

and so my descent into madness beings...

god help me

OFF TOPIC: I suggest every poll from now on to have "**CK EA" option instead of "Other"

Link to comment
Share on other sites

Link to post
Share on other sites

just copy and past it into eclipse to tell you everything that is wrong.

Good luck, Have fun, Build PC, and have a last gen console for use once a year. I should answer most of the time between 9 to 3 PST

NightHawk 3.0: R7 5700x @, B550A vision D, H105, 2x32gb Oloy 3600, Sapphire RX 6700XT  Nitro+, Corsair RM750X, 500 gb 850 evo, 2tb rocket and 5tb Toshiba x300, 2x 6TB WD Black W10 all in a 750D airflow.
GF PC: (nighthawk 2.0): R7 2700x, B450m vision D, 4x8gb Geli 2933, Strix GTX970, CX650M RGB, Obsidian 350D

Skunkworks: R5 3500U, 16gb, 500gb Adata XPG 6000 lite, Vega 8. HP probook G455R G6 Ubuntu 20. LTS

Condor (MC server): 6600K, z170m plus, 16gb corsair vengeance LPX, samsung 750 evo, EVGA BR 450.

Spirt  (NAS) ASUS Z9PR-D12, 2x E5 2620V2, 8x4gb, 24 3tb HDD. F80 800gb cache, trueNAS, 2x12disk raid Z3 stripped

PSU Tier List      Motherboard Tier List     SSD Tier List     How to get PC parts cheap    HP probook 445R G6 review

 

"Stupidity is like trying to find a limit of a constant. You are never truly smart in something, just less stupid."

Camera Gear: X-S10, 16-80 F4, 60D, 24-105 F4, 50mm F1.4, Helios44-m, 2 Cos-11D lavs

Link to comment
Share on other sites

Link to post
Share on other sites

just copy and past it into eclipse to tell you everything that is wrong.

I copy and pasted it into eclipse...

eclipse first crashed

then broke

then uninstalled itself

jk

but seriously its not syntax errors its errors within the code

if you know what im saying

OFF TOPIC: I suggest every poll from now on to have "**CK EA" option instead of "Other"

Link to comment
Share on other sites

Link to post
Share on other sites

I thought java had the bugs built in /s

 

Eclipse would be helpful

OFF TOPIC: I suggest every poll from now on to have "**CK EA" option instead of "Other"

Link to comment
Share on other sites

Link to post
Share on other sites

Apparently that's what unit tests are for, for isolating the locations of the problems. I have no idea how they work since I've never used them, but JUnit seems to be a popular tool to help you build them. 

 

There's no substitute for reading through the code thoroughly, though, to find flaws in logic.

Link to comment
Share on other sites

Link to post
Share on other sites

I copy and pasted it into eclipse...

eclipse first crashed

then broke

then uninstalled itself

jk

but seriously its not syntax errors its errors within the code

if you know what im saying

 

Code that gives you cancer eh? I know that feel.

Specs: CPU - Intel i7 8700K @ 5GHz | GPU - Gigabyte GTX 970 G1 Gaming | Motherboard - ASUS Strix Z370-G WIFI AC | RAM - XPG Gammix DDR4-3000MHz 32GB (2x16GB) | Main Drive - Samsung 850 Evo 500GB M.2 | Other Drives - 7TB/3 Drives | CPU Cooler - Corsair H100i Pro | Case - Fractal Design Define C Mini TG | Power Supply - EVGA G3 850W

Link to comment
Share on other sites

Link to post
Share on other sites

I copy and pasted it into eclipse...

eclipse first crashed

then broke

then uninstalled itself

jk

but seriously its not syntax errors its errors within the code

if you know what im saying

So for instance your friend wanted to ad 1 plus 2 but instead put a 7 for the 1, so the code runs it just doesn't do anything correctly, is what I think you mean

https://linustechtips.com/main/topic/631048-psu-tier-list-updated/ Tier Breakdown (My understanding)--1 Godly, 2 Great, 3 Good, 4 Average, 5 Meh, 6 Bad, 7 Awful

 

Link to comment
Share on other sites

Link to post
Share on other sites

The issue is between the steering wheel and the seat. -AVE

 

P roblem

I n

C hair

N ot

I n

C omputer

Specs: CPU - Intel i7 8700K @ 5GHz | GPU - Gigabyte GTX 970 G1 Gaming | Motherboard - ASUS Strix Z370-G WIFI AC | RAM - XPG Gammix DDR4-3000MHz 32GB (2x16GB) | Main Drive - Samsung 850 Evo 500GB M.2 | Other Drives - 7TB/3 Drives | CPU Cooler - Corsair H100i Pro | Case - Fractal Design Define C Mini TG | Power Supply - EVGA G3 850W

Link to comment
Share on other sites

Link to post
Share on other sites

Coffeeeeee

Someone told Luke and Linus at CES 2017 to "Unban the legend known as Jerakl" and that's about all I've got going for me. (It didn't work)

 

Link to comment
Share on other sites

Link to post
Share on other sites

You didn't provide us much to go on.

 

Use a debugger. Set breakpoints around where the problem is happening. Note that you can set conditions on breakpoints which can be very useful. Step through the code line by line if need be. Watch variables, find where they start storing invalid data.

Link to comment
Share on other sites

Link to post
Share on other sites

You didn't provide us much to go on.

 

Use a debugger. Set breakpoints around where the problem is happening (conditional breakpoints can be very useful in some situations). Step through the code line by line if need be. Watch variables, find where they start storing invalid data.

Thanks for the help!

:)

NOW

my descent into madness begins

OFF TOPIC: I suggest every poll from now on to have "**CK EA" option instead of "Other"

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×