-
Path: news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.pi.v.chmurka.n
et!not-for-mail
From: q...@t...no1 (Queequeg)
Newsgroups: pl.comp.programming
Subject: Re: problem z if przy debugowaniu w VSCode
Date: Fri, 15 May 2020 08:16:59 +0000 (UTC)
Organization: news.chmurka.net
Message-ID: <f...@t...no1>
References: <r77hn3$5uj3$1@portraits.wsisiz.edu.pl>
NNTP-Posting-Host: pi.v.chmurka.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 May 2020 08:16:59 +0000 (UTC)
Injection-Info: vps.chmurka.net; posting-account="queequeg";
posting-host="pi.v.chmurka.net:172.24.44.20"; logging-data="18792";
mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.57-v7+ (armv7l))
Cancel-Lock: sha1:JRRap2loUZh9menwr50zzu/aFHo=
Xref: news-archive.icm.edu.pl pl.comp.programming:214918
[ ukryj nagłówki ]RM <r...@w...pl> wrote:
> i mimo że m = 1 oraz matches2.size() == 5 to debuger wchodzi mi do
> gałęzi else. (Zmienna m jest typu unsigned int a zmienna matches2 typu
> smatch.)
> Jak to możliwe?
W gdb jest dobrze. Sprawdź z takim programem.
(gdb) l
1 #include <stdio.h>
2
3 int main(void)
4 {
5 int m = 1, ms = 5;
6 if (m + 1 < ms - 1)
7 printf("tak\n");
8 else
9 printf("nie\n");
10 return 0;
(gdb) b 5
Breakpoint 1 at 0x10414: file a.c, line 5.
(gdb) r
Starting program: /tmp/a
Breakpoint 1, main () at a.c:5
5 int m = 1, ms = 5;
(gdb) s
6 if (m + 1 < ms - 1)
(gdb) s
7 printf("tak\n");
(gdb)
--
https://www.youtube.com/watch?v=9lSzL1DqQn0
Najnowsze wątki z tej grupy
- Bibl. Qt jest sztucznie ograniczona - jest nieprzydatna do celów komercyjnych
- Co sciaga kretynow
- AEiC 2024 - Ada-Europe conference - Deadlines Approaching
- Jakie są dobre zasady programowania programów opartych na wtyczkach?
- sprawdzanie słów kluczowych dot. zła
- Re: W czym sie teraz pisze programy??
- Re: (PDF) Surgical Pathology of Non-neoplastic Gastrointestinal Diseases by Lizhi Zhang
- CfC 28th Ada-Europe Int. Conf. Reliable Software Technologies
- Młodzi programiści i tajna policja
- Ada 2022 Language Reference Manual to be Published by Springer
- Press Release - AEiC 2023, Ada-Europe Reliable Softw. Technol.
- Ada-Europe - AEiC 2023 early registration deadline approaching
- Ada-Europe Int.Conf. Reliable Software Technologies, AEiC 2023
- Ile cykli zajmuje mnożenie liczb 64-bitowych?
- Ideologia Polskiego Programisty wer.3
Najnowsze wątki
- 2024-04-25 Wrocław => Java Developer <=
- 2024-04-25 Kraków => AI Specialist <=
- 2024-04-25 Berlin => Solution Architect (secure communication and IoT solutions)
- 2024-04-25 Gdańsk => Specjalista ds. Sprzedaży <=
- 2024-04-25 Problemy TSMC cd
- 2024-04-25 Kraków => Senior PHP Developer (Symfony) <=
- 2024-04-25 Katowice => Service Leader/PLC Programmer with German <=
- 2024-04-25 Białystok => ERP Implementer <=
- 2024-04-25 O wisienkach
- 2024-04-25 Warszawa => Interactive/Experience Designer <=
- 2024-04-25 Białystok => Wdrożeniowiec ERP <=
- 2024-04-25 Wrocław => Head of Sales (IT services/products field) <=
- 2024-04-25 Berlin => IT Systems Administrator and Customer Support Engineer <=
- 2024-04-25 Warszawa => Technical Lead ( (Java Background)) <=
- 2024-04-25 Warszawa => Business Development Manager <=